import { get } from '../utils/request'
import { APP_ID, APP_SECRET } from '../utils/const'

const API_URL = 'http://121.199.53.182:8085'

const ApI = 'https://test.youbaobao.xyz:18081'

export function getClasstify () {
  return get(`${API_URL}/vmock/classtify`)
}

export function getIndex (params) {
  return get(`${API_URL}/vmock/index`, params)
}

export function getOpenId (code) {
  return get(`${ApI}/openId/get`, {
    appId: APP_ID,
    secret: APP_SECRET,
    code
  })
}
